<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- v-if 接收一个布尔值,如果为false不渲染这个dom,dom会被删除,
            一般被用到不经常切换的tap场景 -->
        <div v-if="isHot">111</div>
    </div>
    <script>
        new Vue({
            el:'#app',
            data(){
                return{
                    isHot:true
                }
            }
        })
    </script>
</body>
</html>